Skip to main content
Version: 5.x.x

EmitRestType


import { EmitRestType } from "@hyper-fetch/sockets"

Description

Defined in emitter/emitter.types.ts:43

Preview

type EmitRestType<Emitter> = {
ack: EmitterAcknowledgeType<ExtractEmitterPayloadType<Emitter>, ExtractEmitterAdapterType<Emitter>>;
options: Partial<EmitterOptionsType<ExtractEmitterEndpointType<Emitter>, ExtractEmitterAdapterType<Emitter>>>;
}

Structure

{
ack: (response: {data:null,error:Error,extra:null} | {data:Response,error:null,extra:ExtractSocketExtraType<AdapterType>}) => void;
options: Partial<EmitterOptionsType<ExtractEmitterEndpointType<Emitter>, ExtractEmitterAdapterType<Emitter>>>;
}